package com.wyd.controller;

import com.wyd.common.Result;
import com.wyd.service.TcProductClientService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class TestProductController {

    @Resource
    private TcProductClientService tcProductClientService;

    @GetMapping("/consumer/product/detail")
    public ResponseEntity<Result> detail(@RequestParam(value = "id") String id){
        return  tcProductClientService.detail(id);
    }

}
